package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/16 21:55
 * @Describe:权限表
 */
@ApiModel(value = "权限实体类：Permission")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_permission")
public class Permission implements Serializable {
    private static final long serialVersionUID = -3289176888895356207L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "权限名称")
    private String name;

    /**
     * 显示优化级
     */
    @TableField(value = "priority")
    @ApiModelProperty(value = "显示优化级")
    private Integer priority;

    /**
     * 状态：1可用，2不可用
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态：1可用，2不可用")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}